package com.stu.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.stu.pojo.Student;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stu.pojo.vo.StudentDescVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-12-20
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {

    List<StudentDescVo> getStudentAndDesc(@Param("name") String name,
                                          @Param("clazzName") String clazzName,
                                          @Param("study") String study,
                                          @Param("school") String school,
                                          @Param("payStatus") String payStatus);

    Page<StudentDescVo> lendingList(@Param("page") Page<StudentDescVo> page,
                                    @Param("name") String name,
                                    @Param("clazzName") String clazzName,
                                    @Param("study") String study,
                                    @Param("school") String school,
                                    @Param("payStatus") String payStatus);
}
